#!/usr/bin/python  
import sys  
import json
import datetime



FIELD_SPLIT='\t'
CLECTION_SPLIT='\002'
MAP_SPLIT='\003'


while 1:
	try:
		line=sys.stdin.readline()
		if(not line):
			break

		line=line.strip ("#|~")  
		listls=line.split("#|~")
		if(len(listls)<8):
			continue
		
		logtime=listls[0]  
		api_name=listls[1]
		request_id =listls[2]
		context=listls[3] 
		request_time=listls[4] 
		total_rpc_time=listls[6] 
		single_rpc_time=listls[5] 
		engine_execution_time=listls[7] 

		engine_execution_time=engine_execution_time[0:len(engine_execution_time)-1]
		print FIELD_SPLIT.join([logtime , api_name , request_id , context ,request_time ,total_rpc_time ,single_rpc_time , engine_execution_time])  
	except Exception, e:
		errormsg="runtime except"+str(e) 
		#print line 
		#print "runtime except"+str(e) 

